package top.liuziqian.shop.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.liuziqian.common.core.domain.BaseEntity;
import top.liuziqian.common.xss.Xss;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 商品品牌表 shop_goods_brand
 *
 * @author liujian
 */
@ApiModel(value = "GoodsBrand", description = "商品品牌")
public class GoodsBrand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 品牌ID */
    @ApiModelProperty("品牌ID")
    private Long brandId;

    /** 品牌名称 */
    @ApiModelProperty(value = "品牌名称",required = false)
    private String brandName;

    /** 品牌图片 */
    @ApiModelProperty("品牌图片")
    private String brandImage;

    /** 排序 */
    @ApiModelProperty("排序")
    private Integer orderNum;

    /** 状态  1显示 0隐藏 */
    @ApiModelProperty("状态  1显示 0隐藏")
    private Integer isShow;

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    @Xss(message = "品牌名称不能包含脚本字符")
    @NotBlank(message = "品牌名称不能为空")
    @Size(min = 0, max = 50, message = "品牌名称不能超过50个字符")
    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getBrandImage() {
        return brandImage;
    }

    public void setBrandImage(String brandImage) {
        this.brandImage = brandImage;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getIsShow() {
        return isShow;
    }

    public void setIsShow(Integer isShow) {
        this.isShow = isShow;
    }

    @Override
    public String toString() {
        return "GoodsBrand{" +
                "brandId=" + brandId +
                ", brandName='" + brandName + '\'' +
                ", brandImage='" + brandImage + '\'' +
                ", orderNum=" + orderNum +
                ", isShow=" + isShow +
                '}';
    }
}
